package com.mfin.bom.objects;

// Generated 17 Jun, 2012 11:27:33 PM by Hibernate Tools 3.4.0.CR1

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Vehicle generated by hbm2java
 */
@Entity
@Table(name = "vehicle", catalog = "mfindb")
public class Vehicle implements java.io.Serializable {

	private Long id;
	private FinanceLoan financeLoan;
	private String make;
	private String model;
	private String makeType;
	private String registrationNo;
	private String engineNo;
	private String chasisNo;
	private Short horsepower;
	private String insuranceCompany;
	private String polocyNo;
	private Date insuranceRenewalDate;
	private String endorsement34;

	public Vehicle() {
	}

	public Vehicle(FinanceLoan financeLoan, String make, String model,
			String makeType, String registrationNo, String engineNo,
			String chasisNo, Short horsepower, String insuranceCompany,
			String polocyNo, Date insuranceRenewalDate, String endorsement34) {
		this.financeLoan = financeLoan;
		this.make = make;
		this.model = model;
		this.makeType = makeType;
		this.registrationNo = registrationNo;
		this.engineNo = engineNo;
		this.chasisNo = chasisNo;
		this.horsepower = horsepower;
		this.insuranceCompany = insuranceCompany;
		this.polocyNo = polocyNo;
		this.insuranceRenewalDate = insuranceRenewalDate;
		this.endorsement34 = endorsement34;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "FINANCE_LOAN_ID")
	public FinanceLoan getFinanceLoan() {
		return this.financeLoan;
	}

	public void setFinanceLoan(FinanceLoan financeLoan) {
		this.financeLoan = financeLoan;
	}

	@Column(name = "MAKE", length = 5)
	public String getMake() {
		return this.make;
	}

	public void setMake(String make) {
		this.make = make;
	}

	@Column(name = "MODEL", length = 23)
	public String getModel() {
		return this.model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	@Column(name = "MAKE_TYPE", length = 23)
	public String getMakeType() {
		return this.makeType;
	}

	public void setMakeType(String makeType) {
		this.makeType = makeType;
	}

	@Column(name = "REGISTRATION_NO", length = 15)
	public String getRegistrationNo() {
		return this.registrationNo;
	}

	public void setRegistrationNo(String registrationNo) {
		this.registrationNo = registrationNo;
	}

	@Column(name = "ENGINE_NO", length = 15)
	public String getEngineNo() {
		return this.engineNo;
	}

	public void setEngineNo(String engineNo) {
		this.engineNo = engineNo;
	}

	@Column(name = "CHASIS_NO", length = 25)
	public String getChasisNo() {
		return this.chasisNo;
	}

	public void setChasisNo(String chasisNo) {
		this.chasisNo = chasisNo;
	}

	@Column(name = "HORSEPOWER")
	public Short getHorsepower() {
		return this.horsepower;
	}

	public void setHorsepower(Short horsepower) {
		this.horsepower = horsepower;
	}

	@Column(name = "INSURANCE_COMPANY", length = 23)
	public String getInsuranceCompany() {
		return this.insuranceCompany;
	}

	public void setInsuranceCompany(String insuranceCompany) {
		this.insuranceCompany = insuranceCompany;
	}

	@Column(name = "POLOCY_NO", length = 23)
	public String getPolocyNo() {
		return this.polocyNo;
	}

	public void setPolocyNo(String polocyNo) {
		this.polocyNo = polocyNo;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "INSURANCE_RENEWAL_DATE", length = 19)
	public Date getInsuranceRenewalDate() {
		return this.insuranceRenewalDate;
	}

	public void setInsuranceRenewalDate(Date insuranceRenewalDate) {
		this.insuranceRenewalDate = insuranceRenewalDate;
	}

	@Column(name = "ENDORSEMENT_34", length = 23)
	public String getEndorsement34() {
		return this.endorsement34;
	}

	public void setEndorsement34(String endorsement34) {
		this.endorsement34 = endorsement34;
	}

}
